package com.hulytu.dev2;

import com.hulytu.dev2.plugin.EnhancePlugin;

import org.jetbrains.annotations.Nullable;

interface IEmbrace {

    int REGISTER_SUCCESS = 0;

    int REGISTER_UPDATE = 1;

    void onAppInit();

    void onDestroyed();

    @Nullable
    EnhancePlugin obtain(String alias);

    int register(String alias, @Nullable EnhancePlugin plugin);

    EnhancePlugin[] plugins();
}
